<template>
    <div class="app-nav">
        <div class="app-nav-left">
            <van-icon name="cross" class="cuIcon-close" @click="close" />
            <img src="~/assets/images/xzcs_logo.png" alt="小竹财税logo" />
            <div class="text">
                <div>小竹财税</div>
                让天下没有难懂的财税
            </div>
        </div>
        <div class="but" @click="downLoadAPP">立即打开</div>
    </div>
</template>

<script>
import { downLoadAPP2 } from "@/assets/utils/utils.js";
export default {
    components: {},
    data() {
        return {};
    },
    mounted() {},
    computed: {},
    methods: {
        close() {
            this.$emit("close");
        },
        downLoadAPP() {
            downLoadAPP2();
        },
    },
};
</script>

<style lang="scss" scoped>
.app-nav {
    background-color: rgba($color: #333333, $alpha: 0.9);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    position: sticky;
    top: 0;
    z-index: 999;
}
.app-nav-left {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    img {
        width: 2.2rem;
        height: 2.2rem;
        margin-left: 0.65rem;
    }
    .text {
        line-height: 1.5;
        font-size: 0.6rem;
        margin-left: 0.25rem;
        color: #cacaca;

        div {
            font-size: 1rem;
            color: #ffffff;
        }
    }
}
.cuIcon-close {
    font-size: 1rem;
}
.but {
    width: 6.25rem;
    font-size: 1rem;
    background-color: #1e73ff;
    text-align: center;
    line-height: 3.5rem;
    height: 3.5rem;
    &:active {
        opacity: 0.8;
    }
}
</style>